<?php echo $header; ?>
<div id="content">
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?>
    	<?php if(isset($breadcrumb['href']) && $breadcrumb['href'] != '' && $breadcrumb['href'] != '#') {?>
	    	<a href="<?php echo $breadcrumb['href']; ?>">
	    		<?php echo $breadcrumb['text']; ?>
	    	</a>
    	<?php }else{?>
    		<?php echo $breadcrumb['text']; ?>
    	<?php }?>
    <?php } ?>
  </div>
  <?php if($error_permission || $error_not_found){?>
  	  <?php if ($error_permission) { ?>
	  <div class="warning"><?php echo $error_permission; ?></div>
	  <?php } ?>
	  <?php if ($error_not_found) { ?>
	  <div class="warning"><?php echo $error_not_found; ?></div>
	  <?php } ?>
  <?php }else{ ?>
	  <?php if ($error_warning) { ?>
	  <div class="warning"><?php echo $error_warning; ?></div>
	  <?php } ?>
	  <div class="box">
	    <div class="heading">
	      <h1><img src="view/image/information.png" alt="" /> <?php echo $heading_title; ?></h1>
	      <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a onclick="location = '<?php echo $cancel; ?>';" class="button"><?php echo $button_cancel; ?></a></div>
	    </div>
	    <div class="content">
	      <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form">
	        <table class="form">
	          <tr>
	            <td><?php echo $text_booking_id; ?></td>
	            <td>
	            	<?php echo $booking_info['booking_id'];?>
	            </td>
	          </tr>
	          <tr>
	            <td><?php echo $text_customer_name; ?></td>
	            <td>
	            	<?php echo $booking_info['customer_name'];?>
	            </td>
	          </tr>
	          <tr>
	            <td><?php echo $text_ip; ?></td>
	            <td>
	            	<?php echo $booking_info['ip'];?>
	            </td>
	          </tr>
	          <tr>
	            <td><span class="required">*</span> <?php echo $entry_number_of_people; ?></td>
	            <td>
	            	<input type="text" name="number_of_people" value="<?php echo $number_of_people; ?>" size="8" />
	            	<?php if (isset($error_number_of_people)) { ?>
                  	<span class="error"><?php echo $error_number_of_people; ?></span>
                  	<?php } ?>
	            </td>
	          </tr>
	          <tr>
		        <td>
		        	<span class="required">*</span> <?php echo $entry_date_booked; ?>
		        </td>
		        <td>
		        	<input type="text" name="date_booked" value="<?php echo $date_booked;?>" class="datetime" readonly="readonly" />
		        	<?php if (isset($error_date_booked)) { ?>
                  	<span class="error"><?php echo $error_date_booked; ?></span>
                  	<?php } ?>
		        </td>
	          </tr>
		      <tr>
		        <td><span class="required">*</span> <?php echo $entry_email; ?></td>
		        <td><input type="text" name="email" value="<?php echo $email;?>" size="40" />
		        	<?php if (isset($error_email)) { ?>
                  	<span class="error"><?php echo $error_email; ?></span>
                  	<?php } ?>
		        </td>
		      </tr>
		      <tr>
		        <td><span class="required">*</span> <?php echo $entry_telephone; ?></td>
		        <td><input type="text" name="telephone" value="<?php echo $telephone;?>" />
		        	<?php if (isset($error_telephone)) { ?>
                  	<span class="error"><?php echo $error_telephone; ?></span>
                  	<?php } ?>
		        </td>
		      </tr>
	          <tr>
	            <td><?php echo $text_request_detail; ?></td>
	            <td>
	            	<?php echo $booking_info['request_detail'];?>
	            </td>
	          </tr>
		      <tr>
		        <td><?php echo $entry_booking_status; ?></td>
		        <td>
		          <select name="booking_status_id">
                  <?php foreach ($booking_statuses as $booking_status) { ?>
                  <?php if ($booking_status['booking_status_id'] == $booking_status_id) { ?>
                  <option value="<?php echo $booking_status['booking_status_id']; ?>" selected="selected"><?php echo $booking_status['name']; ?></option>
                  <?php } else { ?>
                  <option value="<?php echo $booking_status['booking_status_id']; ?>"><?php echo $booking_status['name']; ?></option>
                  <?php } ?>
                  <?php } ?>
                </select>
		        </td>
		      </tr>
		      <tr>
		        <td><?php echo $entry_comment; ?></td>
		        <td><textarea name="comment" cols="60" rows="5"><?php echo $booking_info['comment'];?></textarea></td>
		      </tr>
	        </table>
	      </form>
	    </div>
  	</div>
	<script type="text/javascript" src="view/javascript/jquery/ui/jquery-ui-timepicker-addon.js"></script> 
  	<script type="text/javascript"><!--
	$('.datetime').datetimepicker({
		dateFormat: 'dd/mm/yy',
		timeFormat: 'hh:mm'
	});
	//--></script> 
  	<?php }?>
</div>
<?php echo $footer; ?>